﻿using UnityEngine;
using System.Collections;

public class FPS : MonoBehaviour {
    UILabel fpsLable;
	// Use this for initialization
	void Start () {
        fpsLable=GetComponentInChildren<UILabel>();
	}
	
	// Update is called once per frame
	void Update () {
        int fps = (int)(1 / Time.deltaTime);
        fpsLable.text = "FPS:" + fps;
	}
}
